﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Printstudent.aspx.cs" Inherits="Admin1_Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
        height="0">
        <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0"></embed>
    </object>
    <link href="../css/admin.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../kongjian/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="../kongjian/Lodop/LodopFuncs.js"></script>
    <script src="../kongjian/myjs/myjs.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div class="m_box">
        <div class="m_head">
            打印考生名册</div>
        <div class="m_middle">
            <div class="m_m_c">
                <span>查询条件 单位名称</span></div>
            <div class="m_m_c">
                <asp:TextBox ID="TextBox1" runat="server" Width="145px" Height="20px"></asp:TextBox>
                <!--AutoCompleteExtender成員說明
    MinimumPrefixLength：最少輸入幾個字就呼叫Method
    TargetControlID：哪個TextBox要有自動完成功能
    ServiceMethod：呼叫的Method名
    ServicePath：WebService路徑
    CompletionSetCount：要列出幾筆資料
    -->
            </div>
            <div class="m_m_c">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/search.gif" OnClick="ImageButton1_Click" />
            </div>
            可先查询出单位，选择其中一个，再打印，可输入简称如“公安”</div>
        <div style="float: left">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                GridLines="Horizontal" Height="35px" Width="539px" ForeColor="Black" OnPageIndexChanging="GridView1_PageIndexChanging"
                OnRowDeleting="GridView1_RowDeleting" BackColor="White" BorderColor="#CCCCCC"
                BorderStyle="None" BorderWidth="1px" AllowPaging="True" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="id"
                ShowHeaderWhenEmpty="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                <RowStyle HorizontalAlign="Center" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                        SortExpression="id" Visible="False" />
                    <asp:BoundField DataField="danweimingchen" HeaderText="单位名称" SortExpression="danweimingchen">
                        <ItemStyle Width="320px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="dayingshijian" HeaderText="上次打印时间" SortExpression="dayingshijian" />
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                <HeaderStyle BackColor="#3a9cff" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                <RowStyle BackColor="White" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        </div>
        <div style="float: left">
            <%--<input id="Button5" type="button" onclick="PrintOneURLz('print/Printstudent.aspx')"
                value="打印选中单位考生名册" />--%>
            <asp:Button ID="Button1" runat="server" Text="打印选中单位考生名册" OnClick="Button1_Click1" />
            <asp:Label ID="Label1" runat="server"></asp:Label>
        </div>
        <div class="t_button">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                OldValuesParameterFormatString="original_{0}" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                SelectCommand="SELECT * FROM [danwei]"></asp:SqlDataSource>
            <asp:HiddenField ID="HiddenField1" runat="server" />
            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/allselect.gif"
                OnClick="ImageButton3_Click" />
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/cselect.gif"
                OnClick="ImageButton2_Click" />
            <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/image/adelete.gif"
                OnClick="ImageButton4_Click" />
        </div>
    </div>
    </form>
</body>
</html>
